<?php
class ClsNaanalClient
{
    private $objWClient=null;
    private function __construct($objWClient)
    {
        $this->objWClient=$objWClient;
    }
    public static function &getInstance()
    {
        static $objClient=null;
        if(is_null($objClient))
        {
            $objSession=  ClsNaanalSession::getInstance();
            $client_id=$objSession->getPanelData("client_id");
            $objWClient=ClsWrapper::getInstance("client");
            $objWClient->load($client_id);
            $objClient=new ClsNaanalClient($objWClient);
        }
        return $objClient;
    }
    public function __get($key)
    {
        return $this->objWClient->$key;
    }
}
?>